package jp.co.toshiba.ffsa.service.common;

import java.util.List;

import jp.co.toshiba.ffsa.entity.OperationHistory;

public class OperationHistoryService  extends AbstractService<OperationHistory> {

    public OperationHistory findById() {
        return select().id().getSingleResult();
    }

    public List<OperationHistory> selectAllPaged(int startIndex,int numItems){
        return findAllPaged("", startIndex, numItems);
    }

    public int deleteItem() {
        OperationHistory operationHistory = findById();
        return removeItem(operationHistory);
    }

    public void updateItem(OperationHistory operationHistory){
        update(operationHistory);
    }
}